Learn R Programming

corrfuns (version 1.2)

Partial correlation matrix: Partial correlation matrix

Description

Partial correlation matrix.

Usage

pcormat(x, type = "pearson")

Value

The partial correlation matrix.

Arguments

x

A numerical matrix with two columns.

type

The type of the partial correlation matrix to compute, "pearson" or "spearman".

Author

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

The function computes the partial correlation matrix. Given a correlation matrix, it will return the partial correlation matrix. Each entry in the final matrix, is the partial correlation matrix between a pair of variables given all the rest variables.

See Also

partialcor, partialcor2

Examples

Run this code
pcormat( iris[, 1:4] )

Run the code above in your browser using DataLab